/**
 * Created on 28 sept. 2006 -- 09:02:35
 * Author: avezier (Inovatel)
 */
package antoine.ear.keyboard;

import antoine.ear.Player;
import antoine.ear.exo.Exo;
import antoine.ear.exo.OneNoteSeq;

public class PlayNote extends Thread{

    private Exo seq;
    private Player player;
    
    public PlayNote(int note) {
        this.seq = new OneNoteSeq(40, 5, note);
        player = new Player(seq);
        player.init();
    }

    public void run() {
        player.play();
    }

}
